/*
 * This struct defines the way the registers are stored on the
 *  stack during a system call.
 *
 * Reference: linux/arch/riscv/include/uapi/asm/ptrace.h
 */

 #ifndef LINUX_USER_C66X_TARGET_SYSCALL_H
 #define LINUX_USER_C66X_TARGET_SYSCALL_H
 
 struct target_pt_regs {
    abi_ulong regs[64];
    abi_ulong pc;
    abi_ulong sp;
 };
 

 #define UNAME_MACHINE "c66x"
 #define UNAME_MINIMUM_RELEASE "5.4.0"

 
 #define TARGET_MCL_CURRENT 1
 #define TARGET_MCL_FUTURE  2
 #define TARGET_MCL_ONFAULT 4
 
 #endif
 